import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
//qs 转查询字符串或对象
import qs from 'qs'
//时间对象
import moment from 'moment'
import Vant from 'vant'
import ElementUI from 'element-ui'
import MintUI from 'mint-ui'
import jQuery from 'jquery'
// 框架相应的css基础文件
import 'vant/lib/index.css'
import 'mint-ui/lib/style.min.css'
import 'element-ui/lib/theme-chalk/index.css'

// 基础路由,跨域处理时不用
// axios.defaults.baseURL = 'https://www.fantasyfuturex.com'
// axios.defaults.withCredentials = true; //设置cross跨域 并设置访问权限 允许跨域携带cookie信息

Vue.use(Vant)
Vue.use(MintUI)
Vue.use(ElementUI)
// this调用
Vue.prototype.qs=qs
Vue.prototype.$=jQuery
Vue.prototype.axios = axios
Vue.prototype.moment=moment
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),

}).$mount('#app')

